// Copyright 2025 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by sidekick. DO NOT EDIT.

/// A dyn-compatible, crate-private version of [super::SecureSourceManager].
#[async_trait::async_trait]
pub trait SecureSourceManager: std::fmt::Debug + Send + Sync {
    async fn list_instances(
        &self,
        req: crate::model::ListInstancesRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<crate::model::ListInstancesResponse>>;

    async fn get_instance(
        &self,
        req: crate::model::GetInstanceRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<crate::model::Instance>>;

    async fn create_instance(
        &self,
        req: crate::model::CreateInstanceRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<longrunning::model::Operation>>;

    async fn delete_instance(
        &self,
        req: crate::model::DeleteInstanceRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<longrunning::model::Operation>>;

    async fn list_repositories(
        &self,
        req: crate::model::ListRepositoriesRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<crate::model::ListRepositoriesResponse>>;

    async fn get_repository(
        &self,
        req: crate::model::GetRepositoryRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<crate::model::Repository>>;

    async fn create_repository(
        &self,
        req: crate::model::CreateRepositoryRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<longrunning::model::Operation>>;

    async fn update_repository(
        &self,
        req: crate::model::UpdateRepositoryRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<longrunning::model::Operation>>;

    async fn delete_repository(
        &self,
        req: crate::model::DeleteRepositoryRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<longrunning::model::Operation>>;

    async fn list_hooks(
        &self,
        req: crate::model::ListHooksRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<crate::model::ListHooksResponse>>;

    async fn get_hook(
        &self,
        req: crate::model::GetHookRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<crate::model::Hook>>;

    async fn create_hook(
        &self,
        req: crate::model::CreateHookRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<longrunning::model::Operation>>;

    async fn update_hook(
        &self,
        req: crate::model::UpdateHookRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<longrunning::model::Operation>>;

    async fn delete_hook(
        &self,
        req: crate::model::DeleteHookRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<longrunning::model::Operation>>;

    async fn get_iam_policy_repo(
        &self,
        req: iam_v1::model::GetIamPolicyRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<iam_v1::model::Policy>>;

    async fn set_iam_policy_repo(
        &self,
        req: iam_v1::model::SetIamPolicyRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<iam_v1::model::Policy>>;

    async fn test_iam_permissions_repo(
        &self,
        req: iam_v1::model::TestIamPermissionsRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<iam_v1::model::TestIamPermissionsResponse>>;

    async fn create_branch_rule(
        &self,
        req: crate::model::CreateBranchRuleRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<longrunning::model::Operation>>;

    async fn list_branch_rules(
        &self,
        req: crate::model::ListBranchRulesRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<crate::model::ListBranchRulesResponse>>;

    async fn get_branch_rule(
        &self,
        req: crate::model::GetBranchRuleRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<crate::model::BranchRule>>;

    async fn update_branch_rule(
        &self,
        req: crate::model::UpdateBranchRuleRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<longrunning::model::Operation>>;

    async fn delete_branch_rule(
        &self,
        req: crate::model::DeleteBranchRuleRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<longrunning::model::Operation>>;

    async fn create_pull_request(
        &self,
        req: crate::model::CreatePullRequestRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<longrunning::model::Operation>>;

    async fn get_pull_request(
        &self,
        req: crate::model::GetPullRequestRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<crate::model::PullRequest>>;

    async fn list_pull_requests(
        &self,
        req: crate::model::ListPullRequestsRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<crate::model::ListPullRequestsResponse>>;

    async fn update_pull_request(
        &self,
        req: crate::model::UpdatePullRequestRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<longrunning::model::Operation>>;

    async fn merge_pull_request(
        &self,
        req: crate::model::MergePullRequestRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<longrunning::model::Operation>>;

    async fn open_pull_request(
        &self,
        req: crate::model::OpenPullRequestRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<longrunning::model::Operation>>;

    async fn close_pull_request(
        &self,
        req: crate::model::ClosePullRequestRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<longrunning::model::Operation>>;

    async fn list_pull_request_file_diffs(
        &self,
        req: crate::model::ListPullRequestFileDiffsRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<crate::model::ListPullRequestFileDiffsResponse>>;

    async fn fetch_tree(
        &self,
        req: crate::model::FetchTreeRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<crate::model::FetchTreeResponse>>;

    async fn fetch_blob(
        &self,
        req: crate::model::FetchBlobRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<crate::model::FetchBlobResponse>>;

    async fn create_issue(
        &self,
        req: crate::model::CreateIssueRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<longrunning::model::Operation>>;

    async fn get_issue(
        &self,
        req: crate::model::GetIssueRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<crate::model::Issue>>;

    async fn list_issues(
        &self,
        req: crate::model::ListIssuesRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<crate::model::ListIssuesResponse>>;

    async fn update_issue(
        &self,
        req: crate::model::UpdateIssueRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<longrunning::model::Operation>>;

    async fn delete_issue(
        &self,
        req: crate::model::DeleteIssueRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<longrunning::model::Operation>>;

    async fn open_issue(
        &self,
        req: crate::model::OpenIssueRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<longrunning::model::Operation>>;

    async fn close_issue(
        &self,
        req: crate::model::CloseIssueRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<longrunning::model::Operation>>;

    async fn get_pull_request_comment(
        &self,
        req: crate::model::GetPullRequestCommentRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<crate::model::PullRequestComment>>;

    async fn list_pull_request_comments(
        &self,
        req: crate::model::ListPullRequestCommentsRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<crate::model::ListPullRequestCommentsResponse>>;

    async fn create_pull_request_comment(
        &self,
        req: crate::model::CreatePullRequestCommentRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<longrunning::model::Operation>>;

    async fn update_pull_request_comment(
        &self,
        req: crate::model::UpdatePullRequestCommentRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<longrunning::model::Operation>>;

    async fn delete_pull_request_comment(
        &self,
        req: crate::model::DeletePullRequestCommentRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<longrunning::model::Operation>>;

    async fn batch_create_pull_request_comments(
        &self,
        req: crate::model::BatchCreatePullRequestCommentsRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<longrunning::model::Operation>>;

    async fn resolve_pull_request_comments(
        &self,
        req: crate::model::ResolvePullRequestCommentsRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<longrunning::model::Operation>>;

    async fn unresolve_pull_request_comments(
        &self,
        req: crate::model::UnresolvePullRequestCommentsRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<longrunning::model::Operation>>;

    async fn create_issue_comment(
        &self,
        req: crate::model::CreateIssueCommentRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<longrunning::model::Operation>>;

    async fn get_issue_comment(
        &self,
        req: crate::model::GetIssueCommentRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<crate::model::IssueComment>>;

    async fn list_issue_comments(
        &self,
        req: crate::model::ListIssueCommentsRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<crate::model::ListIssueCommentsResponse>>;

    async fn update_issue_comment(
        &self,
        req: crate::model::UpdateIssueCommentRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<longrunning::model::Operation>>;

    async fn delete_issue_comment(
        &self,
        req: crate::model::DeleteIssueCommentRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<longrunning::model::Operation>>;

    async fn list_locations(
        &self,
        req: location::model::ListLocationsRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<location::model::ListLocationsResponse>>;

    async fn get_location(
        &self,
        req: location::model::GetLocationRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<location::model::Location>>;

    async fn set_iam_policy(
        &self,
        req: iam_v1::model::SetIamPolicyRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<iam_v1::model::Policy>>;

    async fn get_iam_policy(
        &self,
        req: iam_v1::model::GetIamPolicyRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<iam_v1::model::Policy>>;

    async fn test_iam_permissions(
        &self,
        req: iam_v1::model::TestIamPermissionsRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<iam_v1::model::TestIamPermissionsResponse>>;

    async fn list_operations(
        &self,
        req: longrunning::model::ListOperationsRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<longrunning::model::ListOperationsResponse>>;

    async fn get_operation(
        &self,
        req: longrunning::model::GetOperationRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<longrunning::model::Operation>>;

    async fn delete_operation(
        &self,
        req: longrunning::model::DeleteOperationRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<()>>;

    async fn cancel_operation(
        &self,
        req: longrunning::model::CancelOperationRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<()>>;

    fn get_polling_error_policy(
        &self,
        options: &gax::options::RequestOptions,
    ) -> std::sync::Arc<dyn gax::polling_error_policy::PollingErrorPolicy>;

    fn get_polling_backoff_policy(
        &self,
        options: &gax::options::RequestOptions,
    ) -> std::sync::Arc<dyn gax::polling_backoff_policy::PollingBackoffPolicy>;
}

/// All implementations of [super::SecureSourceManager] also implement [SecureSourceManager].
#[async_trait::async_trait]
impl<T: super::SecureSourceManager> SecureSourceManager for T {
    /// Forwards the call to the implementation provided by `T`.
    async fn list_instances(
        &self,
        req: crate::model::ListInstancesRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<crate::model::ListInstancesResponse>> {
        T::list_instances(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn get_instance(
        &self,
        req: crate::model::GetInstanceRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<crate::model::Instance>> {
        T::get_instance(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn create_instance(
        &self,
        req: crate::model::CreateInstanceRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<longrunning::model::Operation>> {
        T::create_instance(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn delete_instance(
        &self,
        req: crate::model::DeleteInstanceRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<longrunning::model::Operation>> {
        T::delete_instance(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn list_repositories(
        &self,
        req: crate::model::ListRepositoriesRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<crate::model::ListRepositoriesResponse>> {
        T::list_repositories(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn get_repository(
        &self,
        req: crate::model::GetRepositoryRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<crate::model::Repository>> {
        T::get_repository(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn create_repository(
        &self,
        req: crate::model::CreateRepositoryRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<longrunning::model::Operation>> {
        T::create_repository(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn update_repository(
        &self,
        req: crate::model::UpdateRepositoryRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<longrunning::model::Operation>> {
        T::update_repository(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn delete_repository(
        &self,
        req: crate::model::DeleteRepositoryRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<longrunning::model::Operation>> {
        T::delete_repository(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn list_hooks(
        &self,
        req: crate::model::ListHooksRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<crate::model::ListHooksResponse>> {
        T::list_hooks(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn get_hook(
        &self,
        req: crate::model::GetHookRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<crate::model::Hook>> {
        T::get_hook(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn create_hook(
        &self,
        req: crate::model::CreateHookRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<longrunning::model::Operation>> {
        T::create_hook(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn update_hook(
        &self,
        req: crate::model::UpdateHookRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<longrunning::model::Operation>> {
        T::update_hook(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn delete_hook(
        &self,
        req: crate::model::DeleteHookRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<longrunning::model::Operation>> {
        T::delete_hook(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn get_iam_policy_repo(
        &self,
        req: iam_v1::model::GetIamPolicyRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<iam_v1::model::Policy>> {
        T::get_iam_policy_repo(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn set_iam_policy_repo(
        &self,
        req: iam_v1::model::SetIamPolicyRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<iam_v1::model::Policy>> {
        T::set_iam_policy_repo(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn test_iam_permissions_repo(
        &self,
        req: iam_v1::model::TestIamPermissionsRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<iam_v1::model::TestIamPermissionsResponse>> {
        T::test_iam_permissions_repo(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn create_branch_rule(
        &self,
        req: crate::model::CreateBranchRuleRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<longrunning::model::Operation>> {
        T::create_branch_rule(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn list_branch_rules(
        &self,
        req: crate::model::ListBranchRulesRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<crate::model::ListBranchRulesResponse>> {
        T::list_branch_rules(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn get_branch_rule(
        &self,
        req: crate::model::GetBranchRuleRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<crate::model::BranchRule>> {
        T::get_branch_rule(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn update_branch_rule(
        &self,
        req: crate::model::UpdateBranchRuleRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<longrunning::model::Operation>> {
        T::update_branch_rule(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn delete_branch_rule(
        &self,
        req: crate::model::DeleteBranchRuleRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<longrunning::model::Operation>> {
        T::delete_branch_rule(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn create_pull_request(
        &self,
        req: crate::model::CreatePullRequestRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<longrunning::model::Operation>> {
        T::create_pull_request(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn get_pull_request(
        &self,
        req: crate::model::GetPullRequestRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<crate::model::PullRequest>> {
        T::get_pull_request(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn list_pull_requests(
        &self,
        req: crate::model::ListPullRequestsRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<crate::model::ListPullRequestsResponse>> {
        T::list_pull_requests(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn update_pull_request(
        &self,
        req: crate::model::UpdatePullRequestRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<longrunning::model::Operation>> {
        T::update_pull_request(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn merge_pull_request(
        &self,
        req: crate::model::MergePullRequestRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<longrunning::model::Operation>> {
        T::merge_pull_request(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn open_pull_request(
        &self,
        req: crate::model::OpenPullRequestRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<longrunning::model::Operation>> {
        T::open_pull_request(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn close_pull_request(
        &self,
        req: crate::model::ClosePullRequestRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<longrunning::model::Operation>> {
        T::close_pull_request(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn list_pull_request_file_diffs(
        &self,
        req: crate::model::ListPullRequestFileDiffsRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<crate::model::ListPullRequestFileDiffsResponse>>
    {
        T::list_pull_request_file_diffs(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn fetch_tree(
        &self,
        req: crate::model::FetchTreeRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<crate::model::FetchTreeResponse>> {
        T::fetch_tree(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn fetch_blob(
        &self,
        req: crate::model::FetchBlobRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<crate::model::FetchBlobResponse>> {
        T::fetch_blob(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn create_issue(
        &self,
        req: crate::model::CreateIssueRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<longrunning::model::Operation>> {
        T::create_issue(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn get_issue(
        &self,
        req: crate::model::GetIssueRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<crate::model::Issue>> {
        T::get_issue(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn list_issues(
        &self,
        req: crate::model::ListIssuesRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<crate::model::ListIssuesResponse>> {
        T::list_issues(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn update_issue(
        &self,
        req: crate::model::UpdateIssueRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<longrunning::model::Operation>> {
        T::update_issue(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn delete_issue(
        &self,
        req: crate::model::DeleteIssueRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<longrunning::model::Operation>> {
        T::delete_issue(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn open_issue(
        &self,
        req: crate::model::OpenIssueRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<longrunning::model::Operation>> {
        T::open_issue(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn close_issue(
        &self,
        req: crate::model::CloseIssueRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<longrunning::model::Operation>> {
        T::close_issue(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn get_pull_request_comment(
        &self,
        req: crate::model::GetPullRequestCommentRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<crate::model::PullRequestComment>> {
        T::get_pull_request_comment(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn list_pull_request_comments(
        &self,
        req: crate::model::ListPullRequestCommentsRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<crate::model::ListPullRequestCommentsResponse>> {
        T::list_pull_request_comments(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn create_pull_request_comment(
        &self,
        req: crate::model::CreatePullRequestCommentRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<longrunning::model::Operation>> {
        T::create_pull_request_comment(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn update_pull_request_comment(
        &self,
        req: crate::model::UpdatePullRequestCommentRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<longrunning::model::Operation>> {
        T::update_pull_request_comment(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn delete_pull_request_comment(
        &self,
        req: crate::model::DeletePullRequestCommentRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<longrunning::model::Operation>> {
        T::delete_pull_request_comment(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn batch_create_pull_request_comments(
        &self,
        req: crate::model::BatchCreatePullRequestCommentsRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<longrunning::model::Operation>> {
        T::batch_create_pull_request_comments(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn resolve_pull_request_comments(
        &self,
        req: crate::model::ResolvePullRequestCommentsRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<longrunning::model::Operation>> {
        T::resolve_pull_request_comments(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn unresolve_pull_request_comments(
        &self,
        req: crate::model::UnresolvePullRequestCommentsRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<longrunning::model::Operation>> {
        T::unresolve_pull_request_comments(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn create_issue_comment(
        &self,
        req: crate::model::CreateIssueCommentRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<longrunning::model::Operation>> {
        T::create_issue_comment(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn get_issue_comment(
        &self,
        req: crate::model::GetIssueCommentRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<crate::model::IssueComment>> {
        T::get_issue_comment(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn list_issue_comments(
        &self,
        req: crate::model::ListIssueCommentsRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<crate::model::ListIssueCommentsResponse>> {
        T::list_issue_comments(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn update_issue_comment(
        &self,
        req: crate::model::UpdateIssueCommentRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<longrunning::model::Operation>> {
        T::update_issue_comment(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn delete_issue_comment(
        &self,
        req: crate::model::DeleteIssueCommentRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<longrunning::model::Operation>> {
        T::delete_issue_comment(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn list_locations(
        &self,
        req: location::model::ListLocationsRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<location::model::ListLocationsResponse>> {
        T::list_locations(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn get_location(
        &self,
        req: location::model::GetLocationRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<location::model::Location>> {
        T::get_location(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn set_iam_policy(
        &self,
        req: iam_v1::model::SetIamPolicyRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<iam_v1::model::Policy>> {
        T::set_iam_policy(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn get_iam_policy(
        &self,
        req: iam_v1::model::GetIamPolicyRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<iam_v1::model::Policy>> {
        T::get_iam_policy(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn test_iam_permissions(
        &self,
        req: iam_v1::model::TestIamPermissionsRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<iam_v1::model::TestIamPermissionsResponse>> {
        T::test_iam_permissions(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn list_operations(
        &self,
        req: longrunning::model::ListOperationsRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<longrunning::model::ListOperationsResponse>> {
        T::list_operations(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn get_operation(
        &self,
        req: longrunning::model::GetOperationRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<longrunning::model::Operation>> {
        T::get_operation(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn delete_operation(
        &self,
        req: longrunning::model::DeleteOperationRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<()>> {
        T::delete_operation(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn cancel_operation(
        &self,
        req: longrunning::model::CancelOperationRequest,
        options: gax::options::RequestOptions,
    ) -> crate::Result<gax::response::Response<()>> {
        T::cancel_operation(self, req, options).await
    }

    fn get_polling_error_policy(
        &self,
        options: &gax::options::RequestOptions,
    ) -> std::sync::Arc<dyn gax::polling_error_policy::PollingErrorPolicy> {
        T::get_polling_error_policy(self, options)
    }

    fn get_polling_backoff_policy(
        &self,
        options: &gax::options::RequestOptions,
    ) -> std::sync::Arc<dyn gax::polling_backoff_policy::PollingBackoffPolicy> {
        T::get_polling_backoff_policy(self, options)
    }
}
